package grailsforum

class Course {

    String name
    String description

    static constraints = {
        name(blank: false, nullable: false, minSize: 2)
        description(nullable: true)
    }

    static hasMany = [threads: Thread]

    static mapping = {

        threads sort: 'created'
    }



}
